﻿using System.Collections.Generic;
using System.Security.Cryptography;

namespace CleanArchitecture.Infrastructure.Models.Business.Columns
{
    /// <summary>
    /// 栏目菜单用于用户角色控制的数据模型
    /// </summary>
    public class ColumnAthorizedModel
    { 
        public int Id { get; set; }
        public int Pid { get; set; }
        public string Title { get; set; }
        public string Language { get; set; }
        public string Name { get => Title; }
        public int Value { get => Id; }
        public int DisplayOrder { get; set; }
        public bool IsAllow { get; set; }
        /// <summary>
        /// For Load
        /// </summary>
        public Dictionary<int, string> AssignedButtons { get; set; }
        /// <summary>
        /// For Load
        /// </summary>
        public string AssignedButtonIds { get; set; }
        /// <summary>
        /// For upload
        /// </summary>
        public string AuthorizedButtonIds { get; set; }
    }
}
